package com.open.capacity.prints.excel;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import java.math.BigDecimal;
import java.util.Date;


@Data
public class PzExcelModel implements IExcelDataModel, IExcelModel {
    //行号
    private Integer rowNum;
    //错误消息
    private String errorMsg;

    private String id;

    @Excel(name = "凭证日期*", isImportField = "true_st")
    @JSONField(format = "yyyy/MM/dd")
    private Date pzrq;

    @Excel(name = "凭证摘要*", isImportField = "true_st")
    @NotBlank(message = "[凭证摘要]不能为空")
    private String zy;

    @Excel(name = "案件号", isImportField = "true_st")
    private String ah;

    @Excel(name = "转入案件号", isImportField = "true_st")
    private String zrah;

    @Excel(name = "转出案件号", isImportField = "true_st")
    private String zcah;

    @Excel(name = "票据号", isImportField = "true_st")
    private String pjh;

    @Excel(name = "往来对象", isImportField = "true_st")
    private String wldx;

    @Excel(name = "金额", isImportField = "true_st")
    private BigDecimal je;

    @Excel(name = "借方金额", isImportField = "true_st")
    private BigDecimal jje;

    @Excel(name = "贷方金额", isImportField = "true_st")
    private BigDecimal dje;
}
